#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Entry point for running the simpleBlog Flask application directly.
This file allows running the Flask app from PyCharm or command line
without using the 'flask run' command.
"""

import os
import sys

# Add the parent directory to the Python path so we can import 'simpleBlog'
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from simpleBlog import create_app

def main():
    """Create and run the Flask application."""
    app = create_app()
    
    # Run the Flask application
    app.run(
        host='127.0.0.1',
        port=5000,
        debug=True
    )

if __name__ == '__main__':
    main()